<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
  <meta charset="UTF-8">
  <title>Login</title>
  <link rel="stylesheet" type="text/css" th:href="@{css/login.css}"/>
</head>
<body>
<div class="antd-pro-layouts-user-layout-content">
  <!--<div class="antd-pro-layouts-user-layout-header">
    <span class="antd-pro-layouts-user-layout-title">门户系统</span>
  </div>-->
  <div class="ant-divider ant-divider-horizontal"></div>
  <div class="antd-pro-pages-user-login-main">
    <form class="ant-form ant-form-horizontal login-form"  th:action="@{/login}" method="post" id="_loginForm">
      <div class="ant-row ant-form-item">
        <div class="ant-col ant-form-item-control-wrapper">
          <div class="ant-form-item-control has-success">
            <span class="ant-form-item-children">
              <span class="ant-input-affix-wrapper ant-input-affix-wrapper-lg">
                <input
                  placeholder="用户名" type="text" id="normal_login_username" data-__meta="[object Object]"
                  data-__field="[object Object]" class="ant-input ant-input-lg" name="username" th:value="${userName}">
              </span>
            </span>
          </div>
        </div>
        <p id="userNameTip" class="ant-from-tip"></p>
      </div>
      <div class="ant-row ant-form-item">
        <div class="ant-col ant-form-item-control-wrapper">
          <div class="ant-form-item-control has-success">
            <span class="ant-form-item-children">
              <span class="ant-input-affix-wrapper ant-input-affix-wrapper-lg">
                <input
                  type="password" placeholder="密码" id="normal_login_password" data-__meta="[object Object]"
                  data-__field="[object Object]" class="ant-input ant-input-lg" name="password">
              </span>
            </span>
          </div>
        </div>
        <p id="passwordTip" class="ant-from-tip"></p>
      </div>
      <div class="ant-row ant-form-item">
        <div class="ant-col ant-form-item-control-wrapper">
          <div class="ant-form-item-control">
            <span class="ant-form-item-children">
              <button type="button"
                      class="ant-btn antd-pro-pages-user-login-submit ant-btn-primary ant-btn-lg" onclick="login();"><span>登 录</span></button></span>
          </div>
        </div>
      </div>
    </form>
  </div>
</div>
</body>
<script type="text/javascript" th:src="@{/js/crypto-js.js}"></script>
<script type="text/javascript" th:src="@{/js/login.js}"></script>
<script type="text/javascript" th:inline="javascript">
  /*<![CDATA[*/
  var msg = [[${msg}]];
  if (msg){
    window.parent.postMessage(msg,'*');
  }
  /*]]>*/
</script>
</html>
